package com.se.common;

public class AtMessage implements SpecialStyleMessage {
    private int leftIndex = -1;

    private int rightIndex = -1;

    private String content;

    public AtMessage() {
    }

    public AtMessage(int left, int right, String content) {
        leftIndex = left;
        rightIndex = right;
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int getRightIndex() {
        return rightIndex;
    }

    @Override
    public int getLeftIndex() {
        return leftIndex;
    }

    @Override
    public void shiftIndex(int offset) {
        leftIndex += offset;
        rightIndex += offset;
    }
}
